<template>
  <div>
    <div class="resource-manage">
      <div class="card-box">
        <div class="card-title">工程造价结算登记</div>
        <el-form ref="ruleForm" :model="formObj" class="form-wrap" size="small" :rules="rules">
          <el-form-item label="工程名称" prop="engineeringName">
            <el-input v-model="formObj.engineeringName" maxlength="20" placeholder="请输入工程名称"></el-input>
          </el-form-item>
          <el-form-item label="建设单位" prop="buildUnit">
            <el-input v-model="formObj.buildUnit" maxlength="20" placeholder="请输入建设单位"></el-input>
          </el-form-item>
          <el-form-item label="审核单位" prop="auditUnit">
            <el-input v-model="formObj.auditUnit" maxlength="20" placeholder="请输入审核单位"></el-input>
          </el-form-item>
          <el-form-item label="施工单位" prop="constructionUnit">
            <el-input v-model="formObj.constructionUnit" maxlength="20" placeholder="请输入施工单位"></el-input>
          </el-form-item>
          <el-form-item label="申报价格" prop="declarePrice">
            <el-input v-model="formObj.declarePrice" placeholder="请输入申报价格" maxlength="16"></el-input>
          </el-form-item>
          <el-form-item label="审核价格" prop="auditPrice">
            <el-input v-model="formObj.auditPrice" placeholder="请输入审核价格" maxlength="16"></el-input>
          </el-form-item>
          <el-form-item label="单位造价" prop="unitPrice">
            <el-input v-model="formObj.unitPrice" placeholder="请输入单位造价" maxlength="16"></el-input>
          </el-form-item>
          <el-form-item label="工程总造价" prop="totalPrice">
            <el-input v-model="formObj.totalPrice" placeholder="请输入工程总造价" maxlength="16"></el-input>
          </el-form-item>
          <el-form-item label="工程总造价(大写)" prop="totalPriceStr">
            <el-input v-model="formObj.totalPriceStr" placeholder="请输入工程总造价(大写)" maxlength="18"></el-input>
          </el-form-item>
          <el-form-item label="编制人" prop="prepareUser">
            <el-input v-model="formObj.prepareUser" placeholder="请输入编制人" maxlength="20"></el-input>
          </el-form-item>
          <el-form-item label="审核人" prop="reviewer">
            <el-input v-model="formObj.reviewer" placeholder="请输入审核人" maxlength="20"></el-input>
          </el-form-item>
          <el-form-item label="批准人" prop="approver">
            <el-input v-model="formObj.approver" placeholder="请输入批准人" maxlength="20"></el-input>
          </el-form-item>
          <el-form-item label="资格证号" prop="qualificationCardNo">
            <el-input v-model="formObj.qualificationCardNo" placeholder="请输入资格证号" maxlength="20"></el-input>
          </el-form-item>
          <el-form-item label="完成日期" prop="completionDate">
            <el-date-picker v-model="formObj.completionDate" type="date" value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择完成日期"></el-date-picker>
          </el-form-item>
          <!--                    <el-form-item label="编号" prop="serialNo" >-->
          <!--                        <el-input v-model="formObj.serialNo" placeholder="请输入编号" maxlength="20" disabled></el-input>-->
          <!--                    </el-form-item>-->
          <el-form-item label="核减" prop="subtract">
            <el-input v-model="formObj.subtract" placeholder="请输入核减" maxlength="16"></el-input>
          </el-form-item>
          <el-form-item label="核减率" prop="subtractRate">
            <el-input v-model="formObj.subtractRate" placeholder="请输入核减率" maxlength="5"></el-input>
          </el-form-item>
          <el-form-item label="备注" prop="remarks" class="full">
            <el-input v-model="formObj.remarks" placeholder="请输入备注" maxlength="200"></el-input>
          </el-form-item>

          <el-form-item label="附件" class="col-two">
            <uploadMedia
              type="file"
              :url="url"
              :busId="busId"
              :modelType="modelType"
              ref="filePlugIn"
              @onSuccess="saveEntity"
              :isView="false"
              :propsFileList="formObj.fileList"
            ></uploadMedia>
          </el-form-item>
        </el-form>
      </div>
    </div>

    <div slot="foot" style="text-align: center">
      <el-button type="primary" size="small" @click="goBack()" style="width: 80px" plain>返回</el-button>
      <el-button type="primary" size="small" v-throttle="[sendData]" style="width: 80px">保存</el-button>
    </div>
  </div>
</template>

<script src='./review-add.js'></script>

<style scoped lang="scss">
@import "../style/common";
@include formWrap(4);
</style>
